/*
 * $Id: ItemBaseToStringPairTransformer.java 15 2013-05-16 05:43:09Z antonyhands@gmail.com $
 */
package ru.olympus.antonyhands.ao.data.util;

import ru.olympus.antonyhands.ao.data.entities.AOItemBase;
import ru.olympus.antonyhands.ao.util.StringPair;

import com.google.common.base.Function;

/**
 * @author AntonyHands
 * @since 15.02.2012
 */
public class ItemBaseToStringPairTransformer implements Function<AOItemBase, StringPair>
{
    @Override
    public StringPair apply(AOItemBase arg0)
    {
        return new StringPair(arg0.getCode(), arg0.getTitle());
    }
}
